﻿namespace _5._10._1._1.School.Tests
{
    using System;
    using Microsoft.VisualStudio.TestTools.UnitTesting;
    using _5._10._1.School;

    [TestClass]
    public class StudentTests
    {
        [TestMethod]
        public void TestStudentNameWithSampleValue()
        {
            Student sampleStudent = new Student("Симеон");

            Assert.AreEqual("Симеон", sampleStudent.Name, "Student's name initialization failed");
        }

        [TestMethod]
        [ExpectedException(typeof(ArgumentNullException))]
        public void TestStudentNameWithNullValue1()
        {
            Student studentWithNullName = new Student(null);
        }

        [TestMethod]
        [ExpectedException(typeof(ArgumentException), AllowDerivedTypes = true)]
        public void TestStudentWithNullValue2()
        {
            Student studentWithNullName = new Student(null);
        }
    }
}
